public abstract class Car {


    private String brand;//品牌
    private String  lpNumber;//车牌号
    private int seatNum;//座位数
    private int rent;//日租金

    public Car(){

    }

    public Car(String brand, String lpNumber, int seatNum, int rent) {
        this.brand = brand;
        this.lpNumber = lpNumber;
        this.seatNum = seatNum;
        this.rent = rent;
    }

    public String getLpNumber() {
        return lpNumber;
    }

    public void setLpNumber(String lpNumber) {
        this.lpNumber = lpNumber;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getSeatNum() {
        return seatNum;
    }

    public void setSeatNum(int seatNum) {
        this.seatNum = seatNum;
    }

    public int getRent() {
        return rent;
    }

    public void setRent(int rent) {
        this.rent = rent;
    }

    //计算租金
    public abstract void CalculateRent();
}
